import { createSelector } from "@ngrx/store";
import { InteractionSelectState, MapState } from "../reducers";
import { getMapState } from "./map.selector";

export const getInteractionSelectState = createSelector(getMapState, (state: MapState) => state.interactionSelect);

export const getInteractionSelectActive = createSelector(getInteractionSelectState, (state: InteractionSelectState) => state.active);